package Lab02.test27;


import java.util.InputMismatchException;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int a = 0;

        Scanner reader=new Scanner(System.in);
        System.out.println("please input an int:");
        try {
          a = reader.nextInt();
        }
        catch(InputMismatchException e){
            System.out.println("发生异常! ! !");
        }
        }
}
